home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / prgtools / czlis110.zip / DEMODIR.FRM < prev    next >
Text File  |  1994-10-29  |  17KB  |  678 lines

  1. Version 1.00
  2. BEGIN Form frmDemoDir
  3.     AutoRedraw   = 0
  4.     BackColor    = QBColor(7)
  5.     BorderStyle  = 2
  6.     Caption      = "CzDir"
  7.     ControlBox   = -1
  8.     Enabled      = -1
  9.     ForeColor    = QBColor(0)
  10.     Height       = Char(24)
  11.     Left         = Char(1)
  12.     MaxButton    = -1
  13.     MinButton    = -1
  14.     MousePointer = 0
  15.     Tag          = ""
  16.     Top          = Char(0)
  17.     Visible      = -1
  18.     Width        = Char(74)
  19.     WindowState  = 0
  20.     BEGIN Frame Frame1
  21.         BackColor    = QBColor(7)
  22.         Caption      = "General Information:"
  23.         DragMode     = 0
  24.         Enabled      = -1
  25.         ForeColor    = QBColor(0)
  26.         Height       = Char(6)
  27.         Left         = Char(2)
  28.         MousePointer = 0
  29.         TabIndex     = 11
  30.         Tag          = ""
  31.         Top          = Char(16)
  32.         Visible      = -1
  33.         Width        = Char(57)
  34.         BEGIN Label Label4
  35.             Alignment    = 0
  36.             AutoSize     = 0
  37.             BackColor    = QBColor(7)
  38.             BorderStyle  = 0
  39.             Caption      = "(Press ENTER to display!)"
  40.             DragMode     = 0
  41.             Enabled      = -1
  42.             ForeColor    = QBColor(15)
  43.             Height       = Char(1)
  44.             Left         = Char(19)
  45.             MousePointer = 0
  46.             TabIndex     = 12
  47.             Tag          = ""
  48.             Top          = Char(0)
  49.             Visible      = -1
  50.             Width        = Char(25)
  51.         END
  52.         BEGIN Label Label2
  53.             Alignment    = 0
  54.             AutoSize     = 0
  55.             BackColor    = QBColor(7)
  56.             BorderStyle  = 0
  57.             Caption      = "Label2"
  58.             DragMode     = 0
  59.             Enabled      = -1
  60.             ForeColor    = QBColor(0)
  61.             Height       = Char(1)
  62.             Left         = Char(1)
  63.             MousePointer = 0
  64.             TabIndex     = 13
  65.             Tag          = ""
  66.             Top          = Char(1)
  67.             Visible      = -1
  68.             Width        = Char(30)
  69.         END
  70.         BEGIN Label Label3
  71.             Alignment    = 0
  72.             AutoSize     = 0
  73.             BackColor    = QBColor(7)
  74.             BorderStyle  = 0
  75.             Caption      = "Label3"
  76.             DragMode     = 0
  77.             Enabled      = -1
  78.             ForeColor    = QBColor(0)
  79.             Height       = Char(1)
  80.             Left         = Char(1)
  81.             MousePointer = 0
  82.             TabIndex     = 14
  83.             Tag          = ""
  84.             Top          = Char(2)
  85.             Visible      = -1
  86.             Width        = Char(49)
  87.         END
  88.         BEGIN Label Label7
  89.             Alignment    = 0
  90.             AutoSize     = 0
  91.             BackColor    = QBColor(7)
  92.             BorderStyle  = 0
  93.             Caption      = "Label7"
  94.             DragMode     = 0
  95.             Enabled      = -1
  96.             ForeColor    = QBColor(0)
  97.             Height       = Char(1)
  98.             Left         = Char(1)
  99.             MousePointer = 0
  100.             TabIndex     = 15
  101.             Tag          = ""
  102.             Top          = Char(3)
  103.             Visible      = -1
  104.             Width        = Char(49)
  105.         END
  106.         BEGIN Label lblListIndex
  107.             Alignment    = 0
  108.             AutoSize     = 0
  109.             BackColor    = QBColor(7)
  110.             BorderStyle  = 0
  111.             Caption      = "Label1"
  112.             DragMode     = 0
  113.             Enabled      = -1
  114.             ForeColor    = QBColor(0)
  115.             Height       = Char(1)
  116.             Left         = Char(12)
  117.             MousePointer = 0
  118.             TabIndex     = 17
  119.             Tag          = ""
  120.             Top          = Char(0)
  121.             Visible      = -1
  122.             Width        = Char(7)
  123.         END
  124.         BEGIN Label Label5
  125.             Alignment    = 0
  126.             AutoSize     = 0
  127.             BackColor    = QBColor(7)
  128.             BorderStyle  = 0
  129.             Caption      = "ListIndex ="
  130.             DragMode     = 0
  131.             Enabled      = -1
  132.             ForeColor    = QBColor(0)
  133.             Height       = Char(1)
  134.             Index        = 1
  135.             Left         = Char(1)
  136.             MousePointer = 0
  137.             TabIndex     = 16
  138.             Tag          = ""
  139.             Top          = Char(0)
  140.             Visible      = -1
  141.             Width        = Char(11)
  142.         END
  143.     END
  144.     BEGIN Frame Frame2
  145.         BackColor    = QBColor(7)
  146.         Caption      = "Tagging:"
  147.         DragMode     = 0
  148.         Enabled      = -1
  149.         ForeColor    = QBColor(0)
  150.         Height       = Char(6)
  151.         Left         = Char(2)
  152.         MousePointer = 0
  153.         TabIndex     = 1
  154.         Tag          = ""
  155.         Top          = Char(10)
  156.         Visible      = -1
  157.         Width        = Char(68)
  158.         BEGIN Label Label5
  159.             Alignment    = 0
  160.             AutoSize     = 0
  161.             BackColor    = QBColor(7)
  162.             BorderStyle  = 0
  163.             Caption      = "Items Tagged ="
  164.             DragMode     = 0
  165.             Enabled      = -1
  166.             ForeColor    = QBColor(0)
  167.             Height       = Char(1)
  168.             Index        = 0
  169.             Left         = Char(33)
  170.             MousePointer = 0
  171.             TabIndex     = 10
  172.             Tag          = ""
  173.             Top          = Char(0)
  174.             Visible      = -1
  175.             Width        = Char(14)
  176.         END
  177.         BEGIN Label Label8
  178.             Alignment    = 0
  179.             AutoSize     = 0
  180.             BackColor    = QBColor(7)
  181.             BorderStyle  = 0
  182.             Caption      = "Keyboard: SPACE to tag/untag"
  183.             DragMode     = 0
  184.             Enabled      = -1
  185.             ForeColor    = QBColor(15)
  186.             Height       = Char(1)
  187.             Left         = Char(1)
  188.             MousePointer = 0
  189.             TabIndex     = 2
  190.             Tag          = ""
  191.             Top          = Char(3)
  192.             Visible      = -1
  193.             Width        = Char(30)
  194.         END
  195.         BEGIN Label Label9
  196.             Alignment    = 0
  197.             AutoSize     = 0
  198.             BackColor    = QBColor(7)
  199.             BorderStyle  = 0
  200.             Caption      = "Mouse: RIGHT button to tag/untag"
  201.             DragMode     = 0
  202.             Enabled      = -1
  203.             ForeColor    = QBColor(15)
  204.             Height       = Char(1)
  205.             Left         = Char(33)
  206.             MousePointer = 0
  207.             TabIndex     = 3
  208.             Tag          = ""
  209.             Top          = Char(3)
  210.             Visible      = -1
  211.             Width        = Char(32)
  212.         END
  213.         BEGIN CommandButton cmdTag
  214.             BackColor    = QBColor(7)
  215.             Cancel       = 0
  216.             Caption      = "&Tag All Items"
  217.             Default      = 0
  218.             DragMode     = 0
  219.             Enabled      = -1
  220.             Height       = Char(1)
  221.             Left         = Char(33)
  222.             MousePointer = 0
  223.             TabIndex     = 4
  224.             TabStop      = -1
  225.             Tag          = ""
  226.             Top          = Char(1)
  227.             Visible      = -1
  228.             Width        = Char(19)
  229.         END
  230.         BEGIN CommandButton cmdUntag
  231.             BackColor    = QBColor(7)
  232.             Cancel       = 0
  233.             Caption      = "&Untag All Items"
  234.             Default      = 0
  235.             DragMode     = 0
  236.             Enabled      = -1
  237.             Height       = Char(1)
  238.             Left         = Char(33)
  239.             MousePointer = 0
  240.             TabIndex     = 5
  241.             TabStop      = -1
  242.             Tag          = ""
  243.             Top          = Char(2)
  244.             Visible      = -1
  245.             Width        = Char(19)
  246.         END
  247.         BEGIN CheckBox chkKeybTag
  248.             BackColor    = QBColor(7)
  249.             Caption      = "&Keyboard Tag-Scrolling"
  250.             DragMode     = 0
  251.             Enabled      = -1
  252.             ForeColor    = QBColor(0)
  253.             Height       = Char(1)
  254.             Left         = Char(1)
  255.             MousePointer = 0
  256.             TabIndex     = 6
  257.             TabStop      = -1
  258.             Tag          = ""
  259.             Top          = Char(1)
  260.             Value        = 0
  261.             Visible      = -1
  262.             Width        = Char(26)
  263.         END
  264.         BEGIN CheckBox chkMouseTag
  265.             BackColor    = QBColor(7)
  266.             Caption      = "&Mouse Tag-Scrolling"
  267.             DragMode     = 0
  268.             Enabled      = -1
  269.             ForeColor    = QBColor(0)
  270.             Height       = Char(1)
  271.             Left         = Char(1)
  272.             MousePointer = 0
  273.             TabIndex     = 7
  274.             TabStop      = -1
  275.             Tag          = ""
  276.             Top          = Char(2)
  277.             Value        = 0
  278.             Visible      = -1
  279.             Width        = Char(26)
  280.         END
  281.         BEGIN Label lblItemsTagged
  282.             Alignment    = 0
  283.             AutoSize     = 0
  284.             BackColor    = QBColor(7)
  285.             BorderStyle  = 0
  286.             Caption      = "Label6"
  287.             DragMode     = 0
  288.             Enabled      = -1
  289.             ForeColor    = QBColor(0)
  290.             Height       = Char(1)
  291.             Left         = Char(47)
  292.             MousePointer = 0
  293.             TabIndex     = 8
  294.             Tag          = ""
  295.             Top          = Char(0)
  296.             Visible      = -1
  297.             Width        = Char(7)
  298.         END
  299.         BEGIN CheckBox chkAllowTag
  300.             BackColor    = QBColor(7)
  301.             Caption      = "&Allow Tagging"
  302.             DragMode     = 0
  303.             Enabled      = -1
  304.             ForeColor    = QBColor(0)
  305.             Height       = Char(1)
  306.             Left         = Char(1)
  307.             MousePointer = 0
  308.             TabIndex     = 9
  309.             TabStop      = -1
  310.             Tag          = ""
  311.             Top          = Char(0)
  312.             Value        = 0
  313.             Visible      = -1
  314.             Width        = Char(22)
  315.         END
  316.     END
  317.     BEGIN CommandButton cmdCancel
  318.         BackColor    = QBColor(7)
  319.         Cancel       = -1
  320.         Caption      = "&Cancel"
  321.         Default      = 0
  322.         DragMode     = 0
  323.         Enabled      = -1
  324.         Height       = Char(3)
  325.         Left         = Char(60)
  326.         MousePointer = 0
  327.         TabIndex     = 18
  328.         TabStop      = -1
  329.         Tag          = ""
  330.         Top          = Char(19)
  331.         Visible      = -1
  332.         Width        = Char(10)
  333.     END
  334.     BEGIN CommandButton cmdCzFile
  335.         BackColor    = QBColor(7)
  336.         Cancel       = 0
  337.         Caption      = "Cz&File"
  338.         Default      = 0
  339.         DragMode     = 0
  340.         Enabled      = -1
  341.         Height       = Char(3)
  342.         Left         = Char(60)
  343.         MousePointer = 0
  344.         TabIndex     = 20
  345.         TabStop      = -1
  346.         Tag          = ""
  347.         Top          = Char(16)
  348.         Visible      = -1
  349.         Width        = Char(10)
  350.     END
  351.     BEGIN Custom CzDir
  352.         Action       = 0
  353.         Alignment    = 0
  354.         Archive      = 0
  355.         AutoRedraw   = 0
  356.         BackColor    = QBColor(7)
  357.         BorderStyle  = 1
  358.         Caption      = ""
  359.         Checked      = 0
  360.         Column       = 0
  361.         DragMode     = 0
  362.         Drive        = ""
  363.         Enabled      = -1
  364.         Filename     = ""
  365.         ForeColor    = QBColor(0)
  366.         Height       = Char(8)
  367.         Hidden       = 0
  368.         Interval     = 0
  369.         LargeChange  = 0
  370.         Left         = Char(2)
  371.         ListCount    = 0
  372.         ListIndex    = 0
  373.         Max          = 0
  374.         Min          = 0
  375.         Mode         = 0
  376.         MousePointer = 0
  377.         MultiLine    = 0
  378.         Normal       = 0
  379.         Path         = ""
  380.         Pattern      = ""
  381.         ReadOnly     = -1
  382.         Row          = 0
  383.         ScrollBars   = 0
  384.         SelLength    = 0
  385.         SelStart     = 0
  386.         SelText      = ""
  387.         SmallChange  = 0
  388.         Sorted       = 0
  389.         Style        = 0
  390.         System       = 0
  391.         TabIndex     = 0
  392.         TabStop      = -1
  393.         Tag          = ""
  394.         Text         = ""
  395.         Top          = Char(2)
  396.         TypeID       = "CzDir"
  397.         Value        = 0
  398.         Visible      = -1
  399.         Width        = Char(68)
  400.     END
  401.     BEGIN Label Label10
  402.         Alignment    = 0
  403.         AutoSize     = 0
  404.         BackColor    = QBColor(7)
  405.         BorderStyle  = 0
  406.         Caption      = "With the mouse: Click on the top or bottom box line to scroll as well."
  407.         DragMode     = 0
  408.         Enabled      = -1
  409.         ForeColor    = QBColor(15)
  410.         Height       = Char(1)
  411.         Left         = Char(1)
  412.         MousePointer = 0
  413.         TabIndex     = 19
  414.         Tag          = ""
  415.         Top          = Char(1)
  416.         Visible      = -1
  417.         Width        = Char(70)
  418.     END
  419. END
  420. DEFINT A-Z
  421.  
  422. '$FORM frmGeneral
  423. '$FORM frmDemoFile
  424. '$FORM frmOrder
  425.  
  426. ' CzList Internal functions. These functions have to be declared if you
  427. ' want to use them.
  428. DECLARE FUNCTION CzGetWhatKindMem% ()
  429. DECLARE FUNCTION CzItemsTagged% ()
  430. DECLARE FUNCTION CzAllowTagging% (YesNo%)
  431. DECLARE FUNCTION CzKeybTagScrolling% (YesNo%)
  432. DECLARE FUNCTION CzMouTagScrolling% (YesNo%)
  433. DECLARE FUNCTION CzSetVirtualPath% (PathToSet$)
  434.  
  435. ' Demo functions
  436. DECLARE SUB CzDirDetails ()
  437. DECLARE SUB CzDirDetails2 ()
  438. DECLARE SUB AboutCzDir ()
  439.  
  440. SUB AboutCzDir ()
  441.  
  442.    a$ = "CzDir is a directory listbox control for VBDOS. It displays an alphabetically sorted, graphical directory tree. It fully supports tagging and untagging."
  443. a$ = a$ + CHR$(13) + CHR$(10)
  444. a$ = a$ + CHR$(13) + CHR$(10) + "CzDir uses 2 memory areas in XMS, EMS or Disk files because it has to keep track of the graphical tree as well as the directory paths."
  445. a$ = a$ + CHR$(13) + CHR$(10)
  446. a$ = a$ + CHR$(13) + CHR$(10) + "CzDir will first try to use XMS Memory. If no XMS memory is available, it will try to use EMS Memory. If no XMS and no EMS memory is available, CzDir will use the disk as virtual memory."
  447. MSGBOX a$, 0, "CzDir Demo"
  448.  
  449. END SUB
  450.  
  451. SUB chkAllowTag_Click ()
  452.  
  453. IF chkAllowTag.Value = 1 THEN
  454.    Result = CzAllowTagging(0)
  455.    Result = CzKeybTagScrolling(0)
  456.    Result = CzMouTagScrolling(0)
  457.    chkKeybTag.Enabled = -1
  458.    chkMouseTag.Enabled = -1
  459.    chkKeybTag.Value = 1
  460.    chkMouseTag.Value = 1
  461. ELSE
  462.    Result = CzAllowTagging(1)
  463.    Result = CzKeybTagScrolling(1)
  464.    Result = CzMouTagScrolling(1)
  465.    chkKeybTag.Enabled = 0
  466.    chkMouseTag.Enabled = 0
  467. END IF
  468.  
  469. END SUB
  470.  
  471. SUB chkKeybTag_Click ()
  472.  
  473. IF chkKeybTag.Value = 1 THEN
  474.    Result = CzKeybTagScrolling(0)
  475. ELSE
  476.    Result = CzKeybTagScrolling(1)
  477. END IF
  478.  
  479. END SUB
  480.  
  481. SUB chkMouseTag_Click ()
  482.  
  483. IF chkMouseTag.Value = 1 THEN
  484.    Result = CzMouTagScrolling(0)
  485. ELSE
  486.    Result = CzMouTagScrolling(1)
  487. END IF
  488.  
  489. END SUB
  490.  
  491. SUB cmdCancel_Click ()
  492.  
  493. ' You must UNLOAD the form or control(s) before you end your program. CzDir
  494. ' will then remove itself from memory. If you do not unload the form or
  495. ' control, the memory used by CzDir (either XMS, EMS, or disk space) will
  496. ' not be released and unpredictable results may occur.
  497. UNLOAD frmDemoDir
  498. frmOrder.SHOW 1
  499. END
  500.  
  501. END SUB
  502.  
  503. SUB cmdCzFile_Click ()
  504.  
  505. ' You must UNLOAD the form or control(s) before you end your program. CzFile
  506. ' will then remove itself from memory. If you do not unload the form or
  507. ' control, the memory used by CzFile (either XMS, EMS, or disk space) will
  508. ' not be released and unpredictable results may occur.
  509. UNLOAD frmDemoDir
  510. frmDemoFile.SHOW 1
  511.  
  512. END SUB
  513.  
  514. SUB cmdTag_Click ()
  515.  
  516. ' Tag all elements
  517. ' Value = 1     : tag alll elements in CzDir
  518. ' Value = 2     : untag alll elements in CzDir
  519. CzDir.Value = 1
  520.  
  521. ' Display the number of items tagged.
  522. lblItemsTagged.Caption = STR$(CzItemsTagged)
  523.  
  524. CzDir.SETFOCUS
  525.  
  526. END SUB
  527.  
  528. SUB cmdUntag_Click ()
  529.  
  530. ' Untag all elements
  531. ' Value = 1     : tag alll elements in CzDir
  532. ' Value = 2     : untag alll elements in CzDir
  533. CzDir.Value = 2
  534.  
  535. ' Display the number of items tagged.
  536. lblItemsTagged.Caption = STR$(CzItemsTagged)
  537.  
  538. CzDir.SETFOCUS
  539.  
  540. END SUB
  541.  
  542. SUB CzDirDetails ()
  543.  
  544.    a$ = "CzDir reads the disk every time you use CzDir.Drive = Drive$."
  545. a$ = a$ + CHR$(13) + CHR$(10)
  546. a$ = a$ + CHR$(13) + CHR$(10) + "Unless you unload the CzDir control, the tree and directory paths stay in memory (XMS, EMS, or Disk)."
  547. MSGBOX a$, 0, "CzDir Demo"
  548.  
  549. END SUB
  550.  
  551. SUB CzDirDetails2 ()
  552.  
  553.      a$ = "                                   NOTE:"
  554. a$ = a$ + CHR$(13) + CHR$(10)
  555. a$ = a$ + CHR$(13) + CHR$(10) + "It will take a few moments until the entire directory tree is read from disk, sorted, and the tree and paths are saved."
  556. MSGBOX a$, 0, "CzDir Demo"
  557.  
  558. END SUB
  559.  
  560. SUB CzDir_DblClick ()
  561.  
  562. ' Get the current element and display it.
  563. ' CzDir.ListIndex is the current Index. You can also get any other
  564. ' index from 0 to ListCount. For example, to get element 189, use
  565. ' Dummy$ = CzDir.List(188). Remember, the list starts with element 0.
  566. MSGBOX CzDir.List(CzDir.ListIndex), 0, "Mouse Double Click"
  567.  
  568. END SUB
  569.  
  570. SUB CzDir_KeyDown (KeyCode AS INTEGER, Shift AS INTEGER)
  571.  
  572. ' Display the current index.
  573. lblListIndex.Caption = STR$(CzDir.ListIndex)
  574.  
  575. ' Display the number of items tagged.
  576. lblItemsTagged.Caption = STR$(CzItemsTagged)
  577.  
  578. ' The ENTER key was pressed. Get the current element and display it.
  579. ' CzDir.ListIndex is the current Index. You can also get any other
  580. ' index from 0 to ListCount. For example, to get element 189, use
  581. ' Dummy$ = CzDir.List(188). Remember, the list starts with element 0.
  582. IF KeyCode = 13 THEN MSGBOX CzDir.List(CzDir.ListIndex), 0, "Pressed Enter Key"
  583.  
  584. END SUB
  585.  
  586. SUB CzDir_MouseDown (Button AS INTEGER, Shift AS INTEGER, X AS SINGLE, Y AS SINGLE)
  587.  
  588. ' Display the number of items tagged.
  589. lblItemsTagged.Caption = STR$(CzItemsTagged)
  590.  
  591. END SUB
  592.  
  593. SUB CzDir_MouseUp (Button AS INTEGER, Shift AS INTEGER, X AS SINGLE, Y AS SINGLE)
  594.  
  595. ' Display the current index.
  596. lblListIndex.Caption = STR$(CzDir.ListIndex)
  597.  
  598. END SUB
  599.  
  600. SUB Form_Load ()
  601.  
  602. Left = ((SCREEN.Width - Width) / 2)   ' Center form horizontally
  603. Top = ((SCREEN.Height - Height) / 2)  ' Center form vertically
  604.  
  605. AboutCzDir
  606. CzDirDetails
  607. CzDirDetails2
  608.  
  609. CzDir.Max = 299
  610. NumElements& = CzDir.Max
  611.  
  612. ' Get a drive letter from user
  613. DriveToRead$ = INPUTBOX$("Enter a drive to read. For example, C:", "", "C:")
  614.  
  615. ' Check user input
  616. IF LEN(DriveToRead$) > 2 THEN DriveToRead$ = LEFT$(DriveToRead$, 2)
  617. IF LEN(DriveToRead$) < 2 THEN DriveToRead$ = "C:"
  618. IF MID$(DriveToRead$, 2, 1) <> ":" THEN MID$(DriveToRead$, 2, 1) = ":"
  619.  
  620. ' Display status window
  621. frmGeneral.Label1.Caption = "One moment...reading disk information."
  622. frmGeneral.SHOW
  623.  
  624. ' Start reading the drive
  625. CzDir.Drive = DriveToRead$
  626.  
  627. ' Unload status window from memory
  628. UNLOAD frmGeneral
  629.  
  630. lblListIndex.Caption = STR$(CzList.ListIndex) ' Display the current index.
  631.  
  632. lblItemsTagged.Caption = STR$(CzItemsTagged)  ' Display the number of items
  633.                      ' tagged.
  634.  
  635. ' Display the number of elements used.
  636. Label2.Caption = "Number of elements =" + STR$(NumElements& + 1)
  637.  
  638. MemoryUsed& = (NumElements& + 1) * 76
  639. SELECT CASE CzGetWhatKindMem
  640.    CASE -1   ' Use XMS
  641.       d$ = "XMS Memory"
  642.    CASE -2   ' Use EMS
  643.       d$ = "EMS Memory"
  644.       ' EMS requires additional 16 KBytes for memory page slackspace
  645.       MemoryUsed& = ((NumElements& + 1) * 76) + 16384
  646.    CASE ELSE
  647.       d$ = "Disk"
  648. END SELECT
  649.  
  650. ' Show the amount of memory or disk space used.
  651. Label3.Caption = "Used =" + STR$(MemoryUsed&) + " Bytes (" + d$ + ")"
  652.  
  653. ' Show the amount of conventional memory used.
  654. Label7.Caption = "Conventional Memory Free =" + STR$(FRE(-1)) + " Bytes"
  655.  
  656. ' ***** Setup Scrolling and Tagging *****
  657. ' Result = The current status, which is either 0 or 1
  658. ' Result = CzAllowTagging(0)       ' 1 = Disable, 0 = Enable
  659. ' Result = CzKeybTagScrolling(0)   ' 1 = Disable, 0 = Enable
  660. ' Result = CzMouTagScrolling(0)    ' 1 = Disable, 0 = Enable
  661.  
  662. IF CzAllowTagging(0) = 0 THEN
  663.    chkAllowTag.Value = 1
  664.    IF CzKeybTagScrolling(0) = 0 THEN
  665.       chkKeybTag.Value = 1
  666.    ELSE
  667.       chkKeybTag.Value = 2
  668.    END IF
  669.    IF CzMouTagScrolling(0) = 0 THEN
  670.       chkMouseTag.Value = 1
  671.    ELSE
  672.       chkMouseTag.Value = 2
  673.    END IF
  674. END IF
  675.  
  676. END SUB
  677.  
  678.